package server.business.pojo;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 调血信息表中申请血液信息表
 * @TableName blood_transfer_detail
 */

@TableName(value = "blood_transfer_detail")
@Data
public class BloodTransferDetail implements Serializable{

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "gmt_creat")
    private Date gmtCreat;

    /**
     * 修改时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "gmt_modified")
    private Date gmtModified;

    /**
     * 申请编号
     */
    @TableField(value = "apply_id")
    private String applyId;

    /**
     * 血液成分
     */

    @TableField(value = "blood_component")
    private String bloodComponent;

    /**
     * ABO血型
     */
    @TableField(value = "abo_type")
    private String aboType;

    /**
     * Rh血型
     */
    @TableField(value = "rh_type")
    private String rhType;

    /**
     * 规格
     */
    @TableField(value = "specification")
    private String specification;
}
